﻿#include "CmdChangeCurrentTabBar.h"

#include "PostCommandPy.h"
#include "BaseModule/IBaseSignal.h"

namespace PostCommand
{
    CmdChangeCurrentTabBar::CmdChangeCurrentTabBar()
        : CommandBase()
    {
        this->initCmdName();
    }

    CmdChangeCurrentTabBar::~CmdChangeCurrentTabBar()
    {
    }

    bool CmdChangeCurrentTabBar::execute()
    {
        emit IBaseSignalInstance->signal_changeCurrentTabBar(m_index);
        return true;
    }

    void CmdChangeCurrentTabBar::undo()
    {
    }

    void CmdChangeCurrentTabBar::redo()
    {
    }

} // namespace PostCommand
